/**
 * 
 */
package java008_6;

import java.util.Scanner;

/**
 * @author 86189
 *
 */
public class zuoye1__11_12 {
	public static void main(String[] arg) {
		//回文数
		Scanner sc = new Scanner(System.in);
		int temp = sc.nextInt();
			if(temp/10000==temp%10 && temp%10000/1000==temp/10%10) {
				System.out.println("是回文数");
			}else {
				System.out.println("不是回文数");
			}
	}
}
